<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<% 

String urlList = "/story/noteList.dp";
String urlView = "/story/noteView.dp";
String jsonList = "/story/noteList.json";

%>

<!DOCTYPE html>
<html lang="ko">
<head>
<title></title>

<script type="text/javascript">

</script>

</head>
<body>


<form id="frm" name="frm" action ="<c:url value='<%=urlList%>'/>" method="post">
	<input type="hidden" name="typeCd" id="typeCd" value="${param.typeCd }" />


	<div class="sort_area">
	
		<select name="cateCd" id="cateCd" onchange="selectCate(this.value)">
			<option value="" ${paramMap.cateCd == '' ? 'selected="selected"' : ''}>분야별</option>
			
			<c:forEach items="${cateCombo}" var="rs" varStatus="status">
				<option value="${rs.CODE}" ${rs.CODE == paramMap.cateCd ? 'selected="selected"' : ''} >${rs.CODE_NM}</option>
			</c:forEach>
		</select>	
	
		<select name="sortCd" id="sortCd" onchange="selectSort(this.value)">
			<option value="newSort" ${paramMap.sortCd == 'newSort' ? 'selected="selected"' : ''}>최신순</option>
			<option value="hitSort" ${paramMap.sortCd == 'hitSort' ? 'selected="selected"' : ''}>인기순</option>
		</select>
	</div>
	
	
	<ul class="book_list" id="book_list">
	
		<c:if test="${not empty rs}">		
			<c:forEach items="${rs}" var="rs" varStatus="status">
				<li>
					<dl class="book_info">
						<dt class="book_tit"><a href="#none" title="${rs.FIRST_NAME}">${rs.LAST_NAME}</a></dt>
						<dd class="book_underline">
							<a href="#none" title="${rs.ACTOR_ID}">
							<strong class="t_blue">[${rs.ACTOR_ID}]</strong>
								${rs.ACTOR_ID}
							</a>
						</dd>
						<dd class="book_links">
							<a href="#none" title="오도독(3)">오도독(3)</a> |
							<a href="#none" title="댓글(5)">댓글(5)</a>
						</dd>
					</dl>		
				</li>			
			</c:forEach>
		</c:if>
		
		<c:if test="${empty rs}">
			<li>검색된 항목이 없습니다.</li>
		</c:if>

	</ul>
</form>
		

</body>
</html>